After checking an object reference for null, you should invoke equals() on that object rather than passing it to another object's equals() method.
